#include <string>
#include <iostream>
#include <fstream>

using namespace std;

int main(int argc, int argv[])
{
	string s;
	ifstream txtFile;
	if (argc == 1)
	{
		cout << "Enter a string: ";
		cin >> s;
	}
	else
	{
		//txtFile.open(*argv[1], ios::in);
		if (!txtFile.good())
		{
			cout << "\nBad file entered.";
			return -1;
		}
	}
	cin.get();
	return 0;
}